package com.leyou.sh.trade.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author balisong_fcs
 * @date 2021/1/16 18:06
 * @desc
 */
@Data
@Document(value =  "#{@collectionName.getCollName()}")
public class CartsItem {
    @Id
    @JsonIgnore
    private String id; //userId+skuId ,mongodb不支持连接id,所以这样写

    private Long skuId;
    @JsonIgnore
    private Long userId;
    private String image;
    private Integer num;
    private Long price;
    private String spec;
    private String title;
}
